using StudentVideo.Shared.Constants;
using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.User;

public class UserCreateRequest {

   /// <summary>
   /// 登录名
   /// </summary>
   [Required]
   [RegularExpression(Pattern.AccountPattern)]
   public required string Username { get; set; }

   /// <summary>
   /// 密码
   /// </summary>
   /// <example>12345678</example>
   [Required]
   [RegularExpression(Pattern.PasswordPattern)]
   public required string Password { get; set; }
}
